package com.zzptc.liliqun.exam;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import java.util.Timer;
import java.util.TimerTask;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
         // SharedPreferences sharedPreferences=getSharedPreferences("welcome", Context.MODE_PRIVATE);//第一个参数写XML的文件名，注意不要后缀
//        SharedPreferences sharedPreferences= MyUtils.getpreferences();
//        boolean bool=sharedPreferences.getBoolean("wel",false);
//        if(bool){
            new Thread(new Runnable() {
                @Override
                public void run() {
                    try {
                        Thread.sleep(1000);
                        Intent intent=new Intent(MainActivity.this,Main2Activity.class);
                        startActivity(intent);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }).start();
//        }else{
//            //进入引导页面
//            startActivity(new Intent(this,MainActivity.class));
//        }
//        finish();

    }


    }


